const express = require("express");
const router = express.Router();
const {
  list,
  all,
  detail,
  add,
  del,
  update,
} = require("../../controllers/system/generatorsController");

/**
 * 查询代码生成分页列表
 * GET /system/generators/list
 */
router.get("/list", list);

/**
 * 查询代码生成所有列表
 * GET /system/generators/all
 */
router.get("/all", all);

/**
 * 查询代码生成详情
 * GET /system/generators/detail
 */
router.get("/detail", detail);

/**
 * 新增代码生成
 * POST /system/generators/add
 */
router.post("/add", add);

/**
 * 删除代码生成
 * DELETE /system/generators/delete
 */
router.delete("/delete", del);

/**
 * 更新代码生成
 * PUT /system/generators/update
 */
router.put("/update", update);

module.exports = router;
